const LoginRequest = {
    username: {
        type: 'string',
        required: true,
        description: '用户邮箱',
        example: 'lstyr@outlook.com',
        format: /^[\w]+@[\w]+\.com$/,
    },
    password: {
        type: 'string',
        required: true,
        description: '用户密码',
        example: '123456',
        format: /^[\w]{6,20}$/,
    },
};

const RegisterRequest = {
    ...LoginRequest,
    nickname: {
        type: 'string',
        required: true,
        description: '用户昵称',
        example: '管理员',
    },
};

module.exports = { LoginRequest, RegisterRequest };
